<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>	
<script type="text/javascript" src="${pageContext.request.contextPath}/js/system/usermanage/comments.js"></script>
<script>
// 	$("#leavemessage").click("click" , function(){
// 		$("#searchForm1").attr("action" , rootPath + "/usermanage/addComment.shtml");
// 		$("#searchForm1").submit();
// 	});
</script>
	<div>
		<form class="form-inline" role="form" id="searchForm1" method="post"
			action="${ctx}/usermanage/addComment.shtml">
		<div class="m-b-md" style="text-align:center;width:80%">
			<div class="m-b-md">
				<label class="control-label"> <span class="h4 font-thin v-middle">窗口:</span></label>
				<select id="type" name="baseFormMap.wid" class="input-medium ui-autocomplete-input" style="width:20%;"
					tabindex="-1" >
					<c:forEach items="${windows}" var="key">
						<option value="${key.getW_id()}"> ${key.getW_name()}</option>
					</c:forEach>
				</select>
			</div>
			
			<div class="form-group">
				<div class="col-sm-0">
					<textarea  rows="16" cols="70"
						name="baseFormMap.content" id="title">${article.content}</textarea>
				</div>
			</div>
			<div class="form-group">
<!-- 				<input type="submit" class="btn btn-default" value="留言"> -->
				<a href="javascript:void()" class="btn btn-default" id="leavemessage">留言</a>
			</div>
		</div>
		</form>
	</div>